home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / jaz_clib.arc / JZSCRON.C < prev    next >
Text File  |  1989-04-09  |  844b  |  28 lines

  1. #include <jaz.h>
  2. /*
  3. ┌────────────────────────────────────────────────────────────────────────────┐
  4. │jzscron.c                                     │
  5. │Turn the display screen on after a previous call to jzscroff().         │
  6. │                                         │
  7. │ (C) JazSoft Software by Jack A. Zucker (301) 794-5950              │
  8. └────────────────────────────────────────────────────────────────────────────┘
  9. */
  10. jzscron()
  11. {
  12.   #define CPORT 0x3D8        /* address of mode select register */
  13.   #define MPORT 0x3B8        /* address of CRT control port       */
  14.  
  15.   unsigned int PORTADDR;    /* hold address of port        */
  16.   unsigned int wport;        /* hold original contents       */
  17.  
  18.   if (MEMB(0x40,0x49) == 7)    /* mono card */
  19.     PORTADDR = MPORT;
  20.   else
  21.     PORTADDR = CPORT;
  22.  
  23.   wport = inp(PORTADDR);    /* get original contents */
  24.  
  25.   outp(PORTADDR,wport | 8);    /* enable the display bit */
  26. }
  27.  
  28.